const Sequelize = require('sequelize'); //引入Sequelize模块
const db = require('../db');


//定义model
const Like = db.define('Like',{
    //主键用户id
    u_id:{type:Sequelize.INTEGER,allowNull:false},
    //点赞动态id
    s_id:{type:Sequelize.INTEGER},
    //点赞评论id
    r_id:{type:Sequelize.INTEGER},

}, {
        underscored:true,
        tableName:'like',
        timestamps: false//禁用创建时间戳
});

Like.removeAttribute('id');
module.exports = Like;